import ora from "ora";
export async function loading(message, fn){
    const spinner = ora(message)
    spinner.start()
    const res = await fn()
    spinner.succeed()
    return res
}